package com.hmall.order.controller;


import com.hmall.order.pojo.RequestParams;
import com.hmall.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/order")
@RestController
public class OrderController {

    @Autowired
    private OrderService orderService;


    @PostMapping("")
    public Long createOrder(@RequestBody RequestParams param){
       return orderService.creatOrder(param);
    }

}
